package de.greenrobot.daoexample.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by squall on 2017/3/6.
 */

public class FollowTag implements Serializable {

    private String tag_name;
    private String tag_id;
    private boolean tf_status;
    private String cover;
    private String type_name;
    private List<FollowTag> rela_tags = new ArrayList<>();

    public String getTag_name() {
        return tag_name;
    }

    public String getTag_id() {
        return tag_id;
    }

    public boolean isTf_status() {
        return tf_status;
    }

    public void setTag_name(String tag_name) {
        this.tag_name = tag_name;
    }

    public void setTag_id(String tag_id) {
        this.tag_id = tag_id;
    }

    public void setTf_status(boolean tf_status) {
        this.tf_status = tf_status;
    }

    public List<FollowTag> getRela_tags() {
        return rela_tags;
    }

    public void setRela_tags(List<FollowTag> rela_tags) {
        this.rela_tags = rela_tags;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FollowTag followTag = (FollowTag) o;

        return tag_id.equals(followTag.tag_id);

    }

    @Override
    public int hashCode() {
        return tag_id.hashCode();
    }
}
